package main

import (
	"yundian/internel/app/logic"
	"yundian/internel/pkg/dbs"
	"yundian/internel/pkg/dingo"
)

func main()  {
	dingo.InitViper("./configs/adm.yaml")
	dbs.NewMysqlComponent().Step()
	//logic.NewTaskLogic().BranchIncomeStatistics(15, "pcl")
	//logic.NewTaskLogic().AgentIncomeStatisticsByDay("2021-07-12", "pcl")
	//logic.NewTaskLogic().SingleAgentIncomeStatistics(221, nil, 35, "pcl")
	//logic.NewTaskLogic().SingleAgentIncomeStatistics(217, nil, 35, "pcl")
	//logic.NewTaskLogic().SingleAgentIncomeStatistics(219, nil, 35, "pcl")
	//logic.NewTaskLogic().SingleAgentIncomeStatistics(401587, nil, 55, "pcl")
	//logic.NewTaskLogic().SingleAgentIncomeStatistics(401585, nil, 55, "pcl")
	//logic.NewTaskLogic().SingleAgentIncomeStatistics(401522, nil, 55, "pcl")
	//logic.NewTaskLogic().SingleAgentIncomeStatistics(401734, nil, 55, "pcl")
	//logic.NewTaskLogic().SingleAgentIncomeStatistics(400534, nil, 43, "pcl")
	//logic.NewTaskLogic().SingleAgentIncomeStatistics(401361, nil, 40, "pcl")
	logic.NewTaskLogic().SingleAgentIncomeStatistics(401433, nil, 50, "pcl")
	//logic.NewTaskLogic().SingleAgentIncomeStatistics(300081, nil, 37, "pcl")
	//logic.NewTaskLogic().MultiplePlaceIncomeStatistics(402536, nil, 32, "pcl")
	//logic.NewTaskLogic().MultiplePlaceIncomeStatistics(401361, nil, 37, "pcl")
	//logic.NewTaskLogic().MultiplePlaceIncomeStatistics(400534, nil, 42, "pcl")



	//branchIds := dao.NewUserDao().GetBranchUserIds().Unwrap().([]int)
	//for _, id := range branchIds {
	//	logic.NewTaskLogic().SingleAgentIncomeStatistics(id, nil, 45, "pcl")
	//}
}
